package com.jiyun.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiyun.model.xitong.YejigoalDoctor;
import com.jiyun.service.IYejigoalDoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-09-25
 */
@RestController
@RequestMapping("/yejidoctor")
public class YejigoalDoctorController {
        @Autowired
        IYejigoalDoctorService yejigoalDoctorService;

        @RequestMapping("findAll")
        public Page<YejigoalDoctor> findAll(Integer pageNum, Integer pageSize, @RequestBody YejigoalDoctor yejigoalDoctor){
                return  yejigoalDoctorService.findAll(pageNum,pageSize,yejigoalDoctor);
        }
}
